package com.xh.bussiness.tiku.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 题型
 * </p>
 *
 * @author daiwei
 * @since 2019-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tiku_question_type")
public class QuestionType extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID , 这里故意演示注解可以无
     */
    @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    /**
     * 题型名称
     */
    private String name;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public QuestionType() {
		super();
	}
    
	public QuestionType(Integer id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
    
}
